package com.ruoyi.finance.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@TableName(value ="tb_payment_voucher_log")
@Data
@AllArgsConstructor
public class PaymentVoucherLog {

    /**
     * 日志ID
     */
    @TableId(value = "log_id")
    private String logId;
    /**
     * 付款单ID
     */
    @TableField(value = "payment_voucher_id")
    private String paymentVoucherId;
    /**
     * 日志描述
     */
    @TableField(value = "log_message")
    private String logMessage;
    /**
     * 日志创建人
     */
    @TableField(value = "log_by")
    private String logBy;
    /**
     * 日志时间
     */
    @TableField(value = "log_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date logTime;
    /**
     * 备注
     */
    @TableField(value = "log_remark")
    private String logRemark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getPaymentVoucherId() {
        return paymentVoucherId;
    }

    public void setPaymentVoucherId(String paymentVoucherId) {
        this.paymentVoucherId = paymentVoucherId;
    }

    public String getLogMessage() {
        return logMessage;
    }

    public void setLogMessage(String logMessage) {
        this.logMessage = logMessage;
    }

    public String getLogBy() {
        return logBy;
    }

    public void setLogBy(String logBy) {
        this.logBy = logBy;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public String getLogRemark() {
        return logRemark;
    }

    public void setLogRemark(String logRemark) {
        this.logRemark = logRemark;
    }


    @Override
    public String toString() {
        return "PaymentVoucherLog{" +
                "logId='" + logId + '\'' +
                ", paymentVoucherId='" + paymentVoucherId + '\'' +
                ", logMessage='" + logMessage + '\'' +
                ", logBy='" + logBy + '\'' +
                ", logTime=" + logTime +
                ", logRemark='" + logRemark + '\'' +
                '}';
    }
}
